<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="webroot" value="${pageContext.request.contextPath}"/>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
 <title>新用户注册</title>
 <link rel="stylesheet" type="text/css" href="./styles/basic.css">
 <script type="text/javascript" src="./js/register.js"></script>
  </head>
  
  <body>
    <%@ include file="./includes/header.jsp"%>
    <div id="content">
    	<div id="left">
    		<h1>提示</h1>
    		<div class="ft" style="border:none;">
    			<table>
    				<tr><td>1、请牢记您注册时填写的用户名和密码，登录本系统时需要恁提供正确的用户名和密码！</td></tr>
    				<tr><td>2、忘记用户名或者密码请联系招生单位！</td></tr>
    			</table>
    		</div>
    	</div>
      <div id="right">
      <h1>新用户注册</h1>
      		<div class="operation">填写用户信息：
      			<span class="mess" id="stuAddMess">
      				${requestScope.stuAdMess}
      			</span>
      		</div>
      		<div class="ft">
      			<form action="./register.do" method="post">
      				<table>
      					<tr>
      						<td class="label">用户名:</td>
      						<td colspan="2"><input type="text" name="username" id="username" value="${requsetScope.username}"/></td>
      						<td class="hint">*用户名为英文字母、下划线或者数字组合，长度为6-20位</td>
      					</tr>
      					<tr>
      						<td class="label">密码:</td>
      						<td colspan="2"><input type="password" name="password" id="password" value="${requestScope.password}"></td>
      						<td class="hint">*密码为英文、下划线或者数字组合，长度为6-20位</td>
      					</tr>
      					<tr>
      						<td class="label">确认密码:</td>
      						<td colspan="2"><input type="password" name="confirmpass" id="confirmpass" value="${requestScope.confirmpass}"></td>
      						<td class="hint">*两次输入的密码要一致</td>
      					</tr>
      					<tr>
      						<td class="label">验证码:</td>
      						<td><input style="width:65px;" type="text" name="code" id="code" value="${requestScope.code}"></td>
      						<td><img src="./includes/code.jsp"id="imagecode" title="单击图片可更换" onclick="this.src+='?tm='+Math.random();"></td>
      						<td class="hint">*看不清？点击验证图片可更换</td>
      					</tr>
      					<tr>
      						<td colspan="3">
      							<input type="submit" value="注册" class="button" id="submit">
      							<input type="reset" value="重置" class="button" id="reset">
      						</td>
      						<td>*已有账号，<a href="login.jsp">点此登录</a></td>
      					</tr>
      				</table>
      			</form>
      		</div>
      </div>
    </div>
  </body>
</html>
